﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_Config/AppConfig.Master" AutoEventWireup="true"
	CodeBehind="PageManager.aspx.cs" Inherits="Nano.App_Config.PageManager" ValidateRequest="false" %>

<%@ Register TagPrefix="ed" Namespace="OboutInc.Editor" Assembly="obout_Editor" %>
<asp:Content ID="Content2" ContentPlaceHolderID="AppConfig_SidebarContentPlaceHolder"
	runat="server">
	<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/App_Config/Default.aspx">Control Panel Home</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="AppConfig_BodyContentPlaceHolder"
	runat="server">
	<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
		<asp:View ID="View1" runat="server">
			<table style="width: 100%;">
				<tr>
					<td>
						<div style="text-align: left; position: relative;">
							<div style="background-image: url('../App_Layouts/Default/Images/icons32.png'); background-position: -314px -2px;
								width: 42px; height: 42px; float: left;">
							</div>
							<div style="height: 42px; vertical-align: middle;">
								<h2 style="display: inline-block;">
									Pages</h2>
							</div>
						</div>
					</td>
					<td>
						<span style="display: inline-block">
							<asp:Button ID="Button1" runat="server" CommandArgument="1" CommandName="SwitchViewByIndex"
								CssClass="AddNew" Text="Add New Page" />
						</span>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						&nbsp;
						<asp:ListView ID="ListView1" runat="server" DataKeyNames="ID" DataSourceID="dsPages">
							<ItemTemplate>
								<tr style="padding: 6px;">
									<td>
										<asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("ID", "PageManager.aspx?id={0}") %>'></asp:HyperLink>
									</td>
									<td>
										<asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
									</td>
									<td>
										<asp:Label ID="KeywordsLabel" runat="server" Text='<%# Eval("Keywords") %>' />
									</td>
									<td>
										<asp:Label ID="DateCreatedLabel" runat="server" Text='<%# Eval("DateCreated") %>' />
									</td>
									<td>
										<asp:Label ID="DateModifiedLabel" runat="server" Text='<%# Eval("DateModified") %>' />
									</td>
									<td>
										<asp:CheckBox ID="IsPublishedCheckBox" runat="server" Checked='<%# Eval("IsPublished") %>'
											Enabled="false" />
									</td>
									<td>
										<asp:CheckBox ID="IsFrontPageCheckBox" runat="server" Checked='<%# Eval("IsFrontPage") %>'
											Enabled="false" />
									</td>
									<td>
										<asp:CheckBox ID="ShowInListCheckBox" runat="server" Checked='<%# Eval("ShowInSiteNavigation") %>'
											Enabled="false" />
									</td>
									<td>
										<asp:Label ID="ParentPageIDLabel" runat="server" Text='<%# Eval("ParentPageID") %>' />
									</td>
								</tr>
							</ItemTemplate>
							<AlternatingItemTemplate>
								<tr style="padding: 6px; background-color: #E5E5E5;">
									<td>
										<asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("ID", "PageManager.aspx?id={0}") %>'></asp:HyperLink>
									</td>
									<td>
										<asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
									</td>
									<td>
										<asp:Label ID="KeywordsLabel" runat="server" Text='<%# Eval("Keywords") %>' />
									</td>
									<td>
										<asp:Label ID="DateCreatedLabel" runat="server" Text='<%# Eval("DateCreated") %>' />
									</td>
									<td>
										<asp:Label ID="DateModifiedLabel" runat="server" Text='<%# Eval("DateModified") %>' />
									</td>
									<td>
										<asp:CheckBox ID="IsPublishedCheckBox" runat="server" Checked='<%# Eval("IsPublished") %>'
											Enabled="false" />
									</td>
									<td>
										<asp:CheckBox ID="IsFrontPageCheckBox" runat="server" Checked='<%# Eval("IsFrontPage") %>'
											Enabled="false" />
									</td>
									<td>
										<asp:CheckBox ID="ShowInListCheckBox" runat="server" Checked='<%# Eval("ShowInSiteNavigation") %>'
											Enabled="false" />
									</td>
									<td>
										<asp:Label ID="ParentPageIDLabel" runat="server" Text='<%# Eval("ParentPageID") %>' />
									</td>
								</tr>
							</AlternatingItemTemplate>
							<EmptyDataTemplate>
								<table id="Table1" runat="server" style="background-color: #FFFFFF; border-collapse: collapse;
									border-color: #999999; border-style: none; border-width: 1px;">
									<tr>
										<td>
											No data was returned.
										</td>
									</tr>
								</table>
							</EmptyDataTemplate>
							<LayoutTemplate>
								<table id="Table2" runat="server">
									<tr id="Tr1" runat="server">
										<td id="Td1" runat="server">
											<table id="itemPlaceholderContainer" runat="server" border="1" cellpadding="8" cellspacing="2"
												style="border: 1px solid #CCCCCC; border-collapse: collapse;">
												<tr id="ListView1_Header" runat="server" style="background-color: #F0F0F0">
													<th id="Th1" runat="server">
														Title
													</th>
													<th id="Th2" runat="server">
														Description
													</th>
													<th id="Th3" runat="server">
														Keywords
													</th>
													<th id="Th4" runat="server">
														DateCreated
													</th>
													<th id="Th5" runat="server">
														DateModified
													</th>
													<th id="Th6" runat="server">
														IsPublished
													</th>
													<th id="Th7" runat="server">
														IsFrontPage
													</th>
													<th id="Th8" runat="server">
														ShowInList
													</th>
													<th id="Th9" runat="server">
														ParentPageID
													</th>
												</tr>
												<tr id="itemPlaceholder" runat="server">
												</tr>
												<tr id="ListView1_Footer" runat="server" style="background-color: #F0F0F0">
													<th id="Th10" runat="server">
														Title
													</th>
													<th id="Th11" runat="server">
														Description
													</th>
													<th id="Th12" runat="server">
														Keywords
													</th>
													<th id="Th13" runat="server">
														DateCreated
													</th>
													<th id="Th14" runat="server">
														DateModified
													</th>
													<th id="Th15" runat="server">
														IsPublished
													</th>
													<th id="Th16" runat="server">
														IsFrontPage
													</th>
													<th id="Th17" runat="server">
														ShowInList
													</th>
													<th id="Th18" runat="server">
														ParentPageID
													</th>
												</tr>
											</table>
										</td>
									</tr>
									<tr id="Tr2" runat="server">
										<td id="Td2" runat="server" style="text-align: center; background-color: #CCCCCC;
											font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;">
											<asp:DataPager ID="DataPager1" runat="server" PageSize="3">
												<Fields>
													<asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowLastPageButton="True" />
												</Fields>
											</asp:DataPager>
										</td>
									</tr>
								</table>
							</LayoutTemplate>
						</asp:ListView>
					</td>
				</tr>
			</table>
			<div style="padding: 10px; margin: 0px auto 0px auto; text-align: left; display: block;
				width: auto;">
				<div>
					<asp:LinqDataSource ID="dsPages" runat="server" ContextTypeName="Nano.Core.DataContext"
						EntityTypeName="" TableName="Pages">
					</asp:LinqDataSource>
				</div>
			</div>
		</asp:View>
		<asp:View ID="View2" runat="server">
			<table style="width: 100%;" cellpadding="8" cellspacing="8">
				<tr>
					<td colspan="2">
						<div style="text-align: left; position: relative;">
							<div style="background-image: url('../App_Layouts/Default/Images/icons32.png'); background-position: -314px -2px;
								width: 42px; height: 42px; float: left;">
							</div>
							<div style="height: 42px; vertical-align: middle;">
								<h2 style="display: inline-block;">
									<asp:Label ID="Label4" runat="server" Text="<%$ Resources:Nano.Labels, AddNewPage %>"></asp:Label>
								</h2>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<asp:Panel ID="Panel1" runat="server" CssClass="PageMessage">
							<asp:Label ID="PageMessage" runat="server"></asp:Label>
						</asp:Panel>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Nano.Labels, PageTitle %>"></asp:Label>
						<br />
						<asp:TextBox ID="txtPageTitle" runat="server" Width="600px" Font-Size="X-Large"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<asp:Label ID="Label2" runat="server" Text="<%$ Resources:Nano.Labels, Permalink %>"></asp:Label>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<asp:Label ID="Label6" runat="server" Text="<%$ Resources:Nano.Labels, PageTemplate %>"></asp:Label>
						<br />
						<asp:DropDownList ID="cmbTemplates" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cmbTemplates_SelectedIndexChanged"
							Width="200px">
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<ed:Editor ID="htmlEditor1" runat="server" PathPrefix="Editor_data/" FlashBrowse="myFlashBrowse.aspx"
							MediaBrowse="myMediaBrowse.aspx" ImageBrowse="myImageBrowse.aspx" UrlBrowse="myUrlBrowse.aspx"
							ShowQuickFormat="false" />
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label ID="Label5" runat="server" Text="<%$ Resources:Nano.Labels, Tags %>"></asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtTags" runat="server"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label ID="Label7" runat="server" Text="<%$ Resources:Nano.Labels, TrackBackUrl %>"></asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtTrackbackUrl" runat="server"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label ID="Label8" runat="server" Text="<%$ Resources:Nano.Labels, PublishOn %>"></asp:Label>
					</td>
					<td>
						<asp:TextBox ID="txtPublishDate" runat="server"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<asp:CheckBox ID="chbAllowComments" runat="server" Checked="True" Text="<%$ Resources:Nano.Labels, AllowComments %>" />
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<asp:CheckBox ID="chbAllowTrackbacks" runat="server" Text="<%$ Resources:Nano.Labels, AllowTrackbacks %>" />
					</td>
				</tr>
				<tr>
					<td style="vertical-align: middle" colspan="2">
						<asp:Label ID="Label3" runat="server" Text="<%$ Resources:Nano.Labels, Author %>"></asp:Label>
						<asp:DropDownList ID="cmbAuthors" runat="server" Width="160px" Height="20px">
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="padding: 10px; border-top-style: solid; border-top-width: 1px;
						border-top-color: #CCCCCC">
						<asp:Button ID="btnSaveDraft" runat="server" Text="<%$ Resources:Nano.Labels, SaveDraft %>"
							OnClick="btnSaveDraft_Click" />
						<asp:Button ID="btnPreview" runat="server" Text="<%$ Resources:Nano.Labels, Preview %>" />
						<asp:Button ID="btnPublish" runat="server" Text="<%$ Resources:Nano.Labels, Publish %>" />
					</td>
				</tr>
			</table>
		</asp:View>
	</asp:MultiView>
</asp:Content>
